From: Martin Kletzander Date: Sun, 23 Jun 2019 21:53:02 +0000 (+0200) Subject: Autojoin channels with same name on different servers in erc X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~19^2~2680 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=63b29f81075a3fdca70348f023d3ebb37a4f2a63;p=emacs.git Autojoin channels with same name on different servers in erc * lisp/erc/erc-join.el (erc-autojoin-channels): Join channels with the same name on different servers (bug#32723). Copyright-paperwork-exempt: yes --- diff --git a/lisp/erc/erc-join.el b/lisp/erc/erc-join.el index 896521eaf0a..c292fdbd797 100644 --- a/lisp/erc/erc-join.el +++ b/lisp/erc/erc-join.el @@ -161,6 +161,10 @@ This function is run from `erc-nickserv-identified-hook'." ;; Only auto-join the channels that we aren't already in ;; using a different nick. (when (or (not buffer) + ;; If the same channel is joined on another + ;; server the best-effort is to just join + (not (string-match (car l) + (process-name erc-server-process))) (not (with-current-buffer buffer (erc-server-process-alive)))) (erc-server-join-channel server chan))))))))